.class Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
.super Landroid/widget/BaseExpandableListAdapter;
.source "NiceAppSearchActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/NiceAppSearchActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "SectionAppsAdapter"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    }
.end annotation


# instance fields
.field private inflate:Landroid/view/LayoutInflater;

.field private mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

.field private mSectionAppsMap:Ljava/util/LinkedHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedHashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;>;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;


# direct methods
.method public constructor <init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity;Ljava/util/LinkedHashMap;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/LinkedHashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .local p2, "sectionAppsMap":Ljava/util/LinkedHashMap;, "Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    const v2, 0x7f0200b3

    const/4 v1, 0x1

    .line 314
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-direct {p0}, Landroid/widget/BaseExpandableListAdapter;-><init>()V

    .line 315
    iput-object p2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mSectionAppsMap:Ljava/util/LinkedHashMap;

    .line 317
    invoke-static {}, Lcom/nostra13/universalimageloader/core/ImageLoader;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 318
    new-instance v0, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    invoke-direct {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;-><init>()V

    .line 319
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->resetViewBeforeLoading(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 320
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheInMemory(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 321
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->cacheOnDisc(Z)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;->EXACTLY:Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;

    .line 322
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->imageScaleType(Lcom/nostra13/universalimageloader/core/assist/ImageScaleType;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    sget-object v1, Landroid/graphics/Bitmap$Config;->ARGB_8888:Landroid/graphics/Bitmap$Config;

    .line 323
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->bitmapConfig(Landroid/graphics/Bitmap$Config;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    new-instance v1, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;

    invoke-direct {v1}, Lcom/nostra13/universalimageloader/core/display/SimpleBitmapDisplayer;-><init>()V

    .line 324
    invoke-virtual {v0, v1}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->displayer(Lcom/nostra13/universalimageloader/core/display/BitmapDisplayer;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 325
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageForEmptyUri(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 326
    invoke-virtual {v0, v2}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->showImageOnFail(I)Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;

    move-result-object v0

    .line 327
    invoke-virtual {v0}, Lcom/nostra13/universalimageloader/core/DisplayImageOptions$Builder;->build()Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    .line 329
    invoke-virtual {p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->inflate:Landroid/view/LayoutInflater;

    .line 330
    return-void
.end method

.method static synthetic access$1000(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;Lcom/brixd/niceapp/model/AppModel;)V
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    .param p1, "x1"    # Lcom/brixd/niceapp/model/AppModel;

    .prologue
    .line 306
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->gotoDetailActivity(Lcom/brixd/niceapp/model/AppModel;)V

    return-void
.end method

.method static synthetic access$900(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;I)Ljava/util/ArrayList;
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;
    .param p1, "x1"    # I

    .prologue
    .line 306
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method private getAppModels(I)Ljava/util/ArrayList;
    .registers 6
    .param p1, "groupPosition"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;"
        }
    .end annotation

    .prologue
    .line 337
    const/4 v1, 0x0

    .line 338
    .local v1, "i":I
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mSectionAppsMap:Ljava/util/LinkedHashMap;

    invoke-virtual {v2}, Ljava/util/LinkedHashMap;->entrySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_b
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_23

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 339
    .local v0, "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    if-ne v1, p1, :cond_20

    .line 340
    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    .line 346
    .end local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :goto_1f
    return-object v2

    .line 342
    .restart local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :cond_20
    add-int/lit8 v1, v1, 0x1

    .line 343
    goto :goto_b

    .line 346
    .end local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :cond_23
    const/4 v2, 0x0

    goto :goto_1f
.end method

.method private getSectionTitleType(I)Ljava/lang/String;
    .registers 6
    .param p1, "groupPosition"    # I

    .prologue
    .line 350
    const/4 v1, 0x0

    .line 351
    .local v1, "i":I
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mSectionAppsMap:Ljava/util/LinkedHashMap;

    invoke-virtual {v2}, Ljava/util/LinkedHashMap;->entrySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_b
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_23

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    .line 352
    .local v0, "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    if-ne v1, p1, :cond_20

    .line 353
    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 359
    .end local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :goto_1f
    return-object v2

    .line 355
    .restart local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :cond_20
    add-int/lit8 v1, v1, 0x1

    .line 356
    goto :goto_b

    .line 359
    .end local v0    # "entry":Ljava/util/Map$Entry;, "Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    :cond_23
    const-string v2, "zuimei.community"

    goto :goto_1f
.end method

.method private gotoDetailActivity(Lcom/brixd/niceapp/model/AppModel;)V
    .registers 5
    .param p1, "appModel"    # Lcom/brixd/niceapp/model/AppModel;

    .prologue
    .line 495
    if-nez p1, :cond_3

    .line 504
    :cond_2
    :goto_2
    return-void

    .line 498
    :cond_3
    new-instance v0, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;-><init>(Landroid/content/Context;)V

    .line 499
    .local v0, "util":Lcom/brixd/niceapp/util/DetailRequestCacheUtil;
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/AppModel;->getModuleType()Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->NICE_DAILY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    if-ne v1, v2, :cond_1e

    .line 500
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoNiceDailyDetail(I)V

    goto :goto_2

    .line 501
    :cond_1e
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/AppModel;->getModuleType()Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    move-result-object v1

    sget-object v2, Lcom/brixd/niceapp/constant/AppConstant$ModuleType;->COMMUNITY:Lcom/brixd/niceapp/constant/AppConstant$ModuleType;

    if-ne v1, v2, :cond_2

    .line 502
    invoke-virtual {p1}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/DetailRequestCacheUtil;->gotoCommunityDetail(I)V

    goto :goto_2
.end method


# virtual methods
.method public getChild(II)Ljava/lang/Object;
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 379
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getChildId(II)J
    .registers 5
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 389
    int-to-long v0, p2

    return-wide v0
.end method

.method public getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 12
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I
    .param p3, "isLastChild"    # Z
    .param p4, "convertView"    # Landroid/view/View;
    .param p5, "parent"    # Landroid/view/ViewGroup;

    .prologue
    const v5, 0x7f0a0007

    .line 459
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/AppModel;

    .line 462
    .local v0, "appModel":Lcom/brixd/niceapp/model/AppModel;
    if-nez p4, :cond_63

    .line 463
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->inflate:Landroid/view/LayoutInflater;

    const v3, 0x7f030071

    const/4 v4, 0x0

    invoke-virtual {v2, v3, p5, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p4

    .line 464
    invoke-virtual {p0, p4}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->parseViews(Landroid/view/View;)Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;

    move-result-object v1

    .line 465
    .local v1, "holder":Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    invoke-virtual {p4, v5, v1}, Landroid/view/View;->setTag(ILjava/lang/Object;)V

    .line 469
    :goto_20
    const v2, 0x7f0a0002

    invoke-virtual {p4, v2, v0}, Landroid/view/View;->setTag(ILjava/lang/Object;)V

    .line 471
    iget-object v2, v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->txtAppName:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 472
    iget-object v2, v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->txtAppSubTitle:Landroid/widget/TextView;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/AppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 473
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/AppModel;->getIconUrl()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgAppIcon:Landroid/widget/ImageView;

    iget-object v5, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    invoke-virtual {v2, v3, v4, v5}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 475
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {p0, p2, v2, v1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->setItemBg(IILcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;)V

    .line 477
    iget-object v2, v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->goBtn:Landroid/widget/ImageButton;

    new-instance v3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$3;

    invoke-direct {v3, p0, v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$3;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;Lcom/brixd/niceapp/model/AppModel;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 484
    new-instance v2, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$4;

    invoke-direct {v2, p0, v0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$4;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;Lcom/brixd/niceapp/model/AppModel;)V

    invoke-virtual {p4, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 491
    return-object p4

    .line 467
    .end local v1    # "holder":Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    :cond_63
    invoke-virtual {p4, v5}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;

    .restart local v1    # "holder":Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    goto :goto_20
.end method

.method public getChildrenCount(I)I
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 369
    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->TOTAL_APPS_DISPLAY:I
    invoke-static {}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$800()I

    move-result v0

    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    return v0
.end method

.method public getGroup(I)Ljava/lang/Object;
    .registers 3
    .param p1, "groupPosition"    # I

    .prologue
    .line 374
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    return-object v0
.end method

.method public getGroupCount()I
    .registers 2

    .prologue
    .line 364
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mSectionAppsMap:Ljava/util/LinkedHashMap;

    invoke-virtual {v0}, Ljava/util/LinkedHashMap;->size()I

    move-result v0

    return v0
.end method

.method public getGroupId(I)J
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 384
    int-to-long v0, p1

    return-wide v0
.end method

.method public getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 14
    .param p1, "groupPosition"    # I
    .param p2, "isExpanded"    # Z
    .param p3, "convertView"    # Landroid/view/View;
    .param p4, "parent"    # Landroid/view/ViewGroup;

    .prologue
    const/4 v8, 0x0

    .line 404
    if-nez p3, :cond_10

    .line 405
    iget-object v6, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->this$0:Lcom/brixd/niceapp/activity/NiceAppSearchActivity;

    invoke-virtual {v6}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v6

    const v7, 0x7f030065

    invoke-virtual {v6, v7, p4, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p3

    .line 410
    :cond_10
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getSectionTitleType(I)Ljava/lang/String;

    move-result-object v5

    .line 412
    .local v5, "titleType":Ljava/lang/String;
    const-string v6, "zuimei.daily"

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5d

    .line 413
    const v4, 0x7f0c0055

    .line 414
    .local v4, "title":I
    const v2, 0x7f020268

    .line 420
    .local v2, "iconRes":I
    :goto_22
    const v6, 0x7f0a0156

    invoke-virtual {p3, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 421
    .local v1, "categoryNameTxt":Landroid/widget/TextView;
    const v6, 0x7f0a0155

    invoke-virtual {p3, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 423
    .local v0, "categoryIconImg":Landroid/widget/ImageView;
    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(I)V

    .line 424
    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 426
    const v6, 0x7f0a0157

    invoke-virtual {p3, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 427
    .local v3, "moreTxt":Landroid/view/View;
    invoke-direct {p0, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->getAppModels(I)Ljava/util/ArrayList;

    move-result-object v6

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->TOTAL_APPS_DISPLAY:I
    invoke-static {}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$800()I

    move-result v7

    if-gt v6, v7, :cond_64

    .line 428
    const/16 v6, 0x8

    invoke-virtual {v3, v6}, Landroid/view/View;->setVisibility(I)V

    .line 429
    new-instance v6, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$1;

    invoke-direct {v6, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;)V

    invoke-virtual {p3, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 454
    :goto_5c
    return-object p3

    .line 416
    .end local v0    # "categoryIconImg":Landroid/widget/ImageView;
    .end local v1    # "categoryNameTxt":Landroid/widget/TextView;
    .end local v2    # "iconRes":I
    .end local v3    # "moreTxt":Landroid/view/View;
    .end local v4    # "title":I
    :cond_5d
    const v4, 0x7f0c0049

    .line 417
    .restart local v4    # "title":I
    const v2, 0x7f020269

    .restart local v2    # "iconRes":I
    goto :goto_22

    .line 436
    .restart local v0    # "categoryIconImg":Landroid/widget/ImageView;
    .restart local v1    # "categoryNameTxt":Landroid/widget/TextView;
    .restart local v3    # "moreTxt":Landroid/view/View;
    :cond_64
    invoke-virtual {v3, v8}, Landroid/view/View;->setVisibility(I)V

    .line 437
    new-instance v6, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$2;

    invoke-direct {v6, p0, v5, p1}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$2;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;Ljava/lang/String;I)V

    invoke-virtual {p3, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_5c
.end method

.method public hasStableIds()Z
    .registers 2

    .prologue
    .line 394
    const/4 v0, 0x0

    return v0
.end method

.method public isChildSelectable(II)Z
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 399
    const/4 v0, 0x0

    return v0
.end method

.method parseViews(Landroid/view/View;)Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    .registers 4
    .param p1, "convertView"    # Landroid/view/View;

    .prologue
    .line 525
    new-instance v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;-><init>(Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;)V

    .local v0, "holder":Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;
    move-object v1, p1

    .line 526
    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->convertView:Landroid/widget/RelativeLayout;

    .line 527
    const v1, 0x7f0a014f

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewBg:Landroid/view/View;

    .line 528
    const v1, 0x7f0a00be

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewAppInfo:Landroid/view/View;

    .line 529
    const v1, 0x7f0a003a

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->txtAppName:Landroid/widget/TextView;

    .line 530
    const v1, 0x7f0a00bf

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->txtAppSubTitle:Landroid/widget/TextView;

    .line 531
    const v1, 0x7f0a002f

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgAppIcon:Landroid/widget/ImageView;

    .line 532
    const v1, 0x7f0a0154

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    .line 533
    const v1, 0x7f0a019e

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageButton;

    iput-object v1, v0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->goBtn:Landroid/widget/ImageButton;

    .line 534
    return-object v0
.end method

.method protected setItemBg(IILcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;)V
    .registers 7
    .param p1, "position"    # I
    .param p2, "total"    # I
    .param p3, "holder"    # Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;

    .prologue
    const/4 v2, 0x0

    .line 507
    if-nez p1, :cond_1f

    .line 508
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 510
    const/4 v0, 0x1

    if-ne p2, v0, :cond_16

    .line 511
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewBg:Landroid/view/View;

    const v1, 0x7f02002c

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 522
    :goto_15
    return-void

    .line 513
    :cond_16
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewBg:Landroid/view/View;

    const v1, 0x7f02002b

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_15

    .line 515
    :cond_1f
    add-int/lit8 v0, p1, 0x1

    # getter for: Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->TOTAL_APPS_DISPLAY:I
    invoke-static {}, Lcom/brixd/niceapp/activity/NiceAppSearchActivity;->access$800()I

    move-result v1

    if-eq v0, v1, :cond_2b

    add-int/lit8 v0, p1, 0x1

    if-ne v0, p2, :cond_39

    .line 516
    :cond_2b
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 517
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewBg:Landroid/view/View;

    const v1, 0x7f020026

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_15

    .line 519
    :cond_39
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->imgTopDivider:Landroid/widget/ImageView;

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 520
    iget-object v0, p3, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter$ViewHolder;->viewBg:Landroid/view/View;

    const v1, 0x7f020080

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_15
.end method

.method public setSectionAppsMap(Ljava/util/LinkedHashMap;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/LinkedHashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/AppModel;",
            ">;>;)V"
        }
    .end annotation

    .prologue
    .line 333
    .local p1, "sectionAppsMap":Ljava/util/LinkedHashMap;, "Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/util/ArrayList<Lcom/brixd/niceapp/model/AppModel;>;>;"
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppSearchActivity$SectionAppsAdapter;->mSectionAppsMap:Ljava/util/LinkedHashMap;

    .line 334
    return-void
.end method
